﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunctionLib.Array
{
    public class SampleFunction : IFunction
    {
        public string Name => "ArraySample";

        public int MinParam => 1;

        public int MaxParam => 1;

        public object Calc(params object[] param)
        {
            Random rad = new Random();
            int[,] array = new int[5,2]; // create array to return values
            for (int i = 0; i < 5; i++)
            {
                array[i, 0] = rad.Next(20);
                array[i, 1] = rad.Next(10);
            }
            return array;
        }
    }
}
